package main

import (
	grpc2 "google.golang.org/grpc"
	"zk1/common/grpc"
	"zk1/common/models"
	"zk1/common/mysql"
	"zk1/rpc/internal"
)

func main() {
	mysql.InitMysql()
	mysql.Db.AutoMigrate(models.User{}, models.Taxi{})
	grpc.Grpc(func(server *grpc2.Server) {
		internal.Router(server)
	})
}
